﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MusicPlayer
{
    public partial class CustomListBoxItem : UserControl
    {
        private FileInfo _musicFile;
        public CustomListBoxItem(String filename)
        {
            _musicFile = new FileInfo(filename);
            InitializeComponent();
            this.nameLabel.Text = _musicFile.Name;
        }

        public string FullName
        {
            get { return _musicFile.FullName; }
        }

        public void Active()
        {
            this.nameLabel.Active = true;
        }

        public void UnActive()
        {
            this.nameLabel.Active=false;
        }
    }
}
